<?php include 'heard.htm';?>
<div id="content">
	<div class="container">
		<div class="row">
			<?php include 'left.htm';?>
			<div class="span9">
				<h1 class="page-title">
					<i class="icon-home"></i>
					用户列表管理					
				</h1>
				<div class="widget widget-table">
					<div class="widget-header">
						<i class="icon-th-list"></i>
						<h3>列表</h3>
					</div> <!-- /widget-header -->
					<div class="widget-content">
						<table class="table table-striped table-bordered">
								<thead>
								<tr>
									<th>#</th>
									<th>用户名</th>
									<th>隶属企业</th>
									<th>创建时间</th>
									<th>操    作</th>
								</tr>
							</thead>
							<tbody>
							  <?php foreach($data as $v):?>
								<tr>
									<td><?php echo $v['uid'];?></td>
									<td><?php echo $v['username'];?></td>
									<td><?php echo get_c_name($v['c_id'],'c_name','company')?></td>
									<td><?php echo $v['createdate'];?></td>
									<td class="action-td">
										<a href="adduserment.php?uid=<?php echo $v['uid'];?>" class="btn btn-small btn-warning">
											<i class="icon-ok"></i>								
										</a>	
										<?php if($_SESSION['c_id']==0):?>
										<a href="javascript:if(confirm('数据删除,永久消失,确定吗?')) location='del_userment.php?uid=<?php echo $v['uid'];?>'" class="btn btn-small btn-warning">
											<i class="icon-remove"></i>
										</a>
										<?php endif;?>				
									</td>
								</tr>
								<?php endforeach;?>
							</tbody>
						</table>
					</div> <!-- /widget-content -->
				</div> <!-- /widget -->
				<div class="plan-actions">				
					<a class="btn" href="adduserment.php">添加企业用户</a>		
				</div>
			</div> <!-- /span9 -->
		</div> <!-- /row -->
	</div> <!-- /container -->
</div> <!-- /content -->
<div id="footer">
	<div class="container">				
		<hr />
		<p>&copy; 2013 Vit System Contol.</p>
	</div> <!-- /container -->
</div> <!-- /footer -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./js/excanvas.min.js"></script>
<script src="./js/jquery.flot.js"></script>
<script src="./js/jquery.flot.pie.js"></script>
<script src="./js/jquery.flot.orderBars.js"></script>
<script src="./js/jquery.flot.resize.js"></script>
<script src="./js/bootstrap.js"></script>
<script src="./js/charts/bar.js"></script>
</body>
</html>
